package com.ruoyi.back.service

import com.baomidou.mybatisplus.extension.service.IService
import com.ruoyi.app.common.PageData
import com.ruoyi.back.domain.UserRecord
import com.ruoyi.back.domain.vo.ResourceInfo
import com.ruoyi.back.domain.vo.ResourceInfos
import com.ruoyi.back.domain.vo.ResourceSearchDto

interface UserRecordService : IService<UserRecord> {

    /**
     * 获取用户换脸次数
     */
    fun getUserChangeFaceNum(userId: Long, type: Int? = 1): Long

    /**
     * 获取用户资源记录分页
     * param: 1. 全部 2.视频 3.图片
     */
    fun getUserResourceRecordPage(resourceSearchDto: ResourceSearchDto): PageData<ResourceInfos>
}